<template>
  <div>
    <!-- <h2>首页</h2>
    <router-link to="iframe2">iframe2</router-link> -->
    <div class="index">
        <!-- 头部导航 -->
        <div class="tabbar"> 
            <div class="index-logo" >
                <img src="../assets/images/index/logo.png" alt="">
            </div>
            <ul class="list">
                <li>APPLICATION</li>
                <li >UASERNAME</li>
                <li>STANDARD</li>
                <li>ADDRESSES</li>
                <li>FEATEURES</li>
            </ul>
            <!-- <div class="right">
              <button class="button">
                <i>EN</i>
                <img src="../assets/images/index/收起.png" alt="">
              </button>
              <img src="../assets/images/index/展开.png" alt="">
            </div> -->
            <language ref="language"  @click="languageClick()"></language>
        </div>
        <div class="iframe1">
            <img src="../assets/images/index/背景图.png" alt="">
            <div class="iframe1-content">
                <p>Decentralised namingfor wallets, </p>
                <p>websites, & more.</p>
                 <div class="btn">
                     <div class="logo">
                        <img src="../assets/images/index/logo1.png" alt="">
                     </div>
                     
                     <div class="text" @click="goApp">
                         <p>BAB Now Available for Claiming</p>
                         <p>Claim your BAB and participate in BAB governance.</p>
                     </div>
                     <div class="right">
                        <img src="../assets/images/index/进入.png"  alt="">
                     </div>
                     
                 </div>
                 <button class="gobtn" @click="goApp">Go to app</button>
            </div>
        </div>
        <div class="iframe2">
          <div class="iframe2-top">
            <div class="iframe2-top-right">
              <div><img src="../assets/images/index/MANAGE.png" alt=""><span>MANAGE</span></div>
              <div><img src="../assets/images/index/REGISTER.png" alt=""><span>REGISTER</span></div>
            </div>
          </div>
          <div class="iframe2-center">
            <div class="iframe2-center-center"><img src="../assets/images/index/search.png" alt=""><span>SEARCH</span></div>
          </div>
          <div class="iframe2-bottom">
            <div class="left"><img src="../assets/images/index/Left.png" alt=""></div>
            <div class="center">
              <div class="center-top">
                <i class="red"></i>
                <i class="yellow"></i>
                <i class="green"></i>
              </div>
            </div>
            <div class="right"><img src="../assets/images/index/Right.png" alt=""></div>
          </div>
        </div>
        <div class="iframe3">
          <img src="../assets/images/index/背景1.png" alt="">
          <div class="iframe3-content">
            <p>Your <i>web3</i> username</p>
            <p>No more sandboxed usernames. Own your username, store an</p>
            <p>avatar and other profile data, and use it across services.</p>
            <button class="iframe3-button">
              <img src="../assets/images/index/头像.png" alt="">
              <span>brantly.eth</span>
            </button>
          </div>
        </div>
        <div class="iframe4">
          <div class="iframe4-content">
            <p><i>BAB</i> is the most widely integrated </p>
            <p>blockchain naming standard.</p>
            <ul>
              <li><i>Names</i><span>637K</span></li>
              <li><i>Integrations</i><span>448</span></li>
              <li><i>Owners</i><span>272K</span></li>
            </ul>
          </div>
        </div>
        <div class="iframe4 iframe5">
          <img src="../assets/images/index/背景1.png" alt="">
          <div class="iframe4-content iframe5-content">
            <p>One Name For All of Your Addresses</p>
            <p>No more copying and pasting long addresses. Use your BAB name to store all </p>
            <p>of your addresses and receive any cryptocurrency, token, or NFT.</p>
            <ul>
              <li><img src="../assets/images/index/btc.png" alt=""><span>BTC</span></li>
              <li><img src="../assets/images/index/doga.png" alt=""><span>DOGA</span></li>
              <li><img src="../assets/images/index/eth.png" alt=""><span>ETH</span></li>
              <li><img src="../assets/images/index/bnb.png" alt=""><span>BNB</span></li>
              <li><img src="../assets/images/index/trx.png" alt=""><span>TRX</span></li>
              <li><img src="../assets/images/index/btc.png" alt=""><span>BTC</span></li>
            </ul>
          </div>
        </div>
        <div class="iframe4 iframe5 iframe6">
          <div class="iframe4-content iframe5-content">
            <p>Get Involved</p>
            <ul>
              <li><img src="../assets/images/index/邮件.png" alt=""><span>Subscribe to our<br> mailing list</span></li>
              <li><img src="../assets/images/index/组织.png" alt=""><span>Join our Discord<br> community</span></li>
              <li><img src="../assets/images/index/聊天.png" alt=""><span>Discuss on our forum</span></li>
              <li><img src="../assets/images/index/记录.png" alt=""><span>Read our<br> documentation</span></li>
            </ul>
          </div>
        </div>
        <div class="footer">
          <div class="footer-content">
            <div class="left">
              <img src="../assets/images/index/底部logo.png" alt="">
              <div>
                <p>Follow for an inspiration and info</p>
                <ul>
                  <li><img src="../assets/images/index/logo_ethersc.png" alt=""></li>
                  <li><img src="../assets/images/index/logo_ethersc-1.png" alt=""></li>
                  <li><img src="../assets/images/index/logo_ethersc-2.png" alt=""></li>
                </ul>
              </div>
            </div>
            <div class="menu">
              <h2>Menu</h2>
              <ul>
                <li>Drops</li>
                <li>Marketplace</li>
                <li>Become an Artist</li>
                <li>Team</li>
              </ul>
            </div>
            <div class="menu">
              <h2>NFTSTARS</h2>
              <ul>
                <li>About us</li>
                <li>F.A.Q</li>
                <li>Terms of use</li>
                <li>Docs</li>
              </ul>
            </div>
          </div>
        </div>
    </div>
  </div>
</template>

<script>
import language from '@/components/views/language.vue';
export default {
  name: 'Landing',
  components:{
    language
  },
  data () {
    return {
      isClick:false
    }
  },
  methods:{
    goApp() {
      this.$router.push({
        name: 'searchPage'
      })
    },
    languageClick(){
        // this.isClick = !this.isClick
        this.$refs.language.btnClick()
    },
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.index{
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.tabbar{
    width: 1200px;
    height: 100px;
    display: flex;
    flex-direction: row;
    flex-flow: wrap;
}
.index-logo{
    width: 164px;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.right{
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.button{
  border:1px solid #F2B92C;
  border-radius: 20px;
  background: none;
  color: #fff;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  cursor: pointer;
  padding:0 20px;
}
.right .el-button span{
 display: flex;
 flex-direction: row;
    justify-content: center;
    align-items: center;
}
.list{
    flex: 1;
    display: flex;
    justify-content: flex-end;
    color: #fff;
    margin-right: 20px;
}
.list li{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding:0 20px;
    cursor: pointer;
}
.iframe1{
   width: 100%;
   position: relative;
}
.iframe1 img{
    width: 100%;
}
.iframe1-content{
    position: absolute;
    left: 0;top: 0;bottom: -40px;right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.iframe1-content p{
  font-size: 36px;
  font-weight: 700;
}
.iframe1-content .btn{
    padding:0 34px;
    display: flex;
    flex-direction: row;
    border-radius: 50px;
    background: rgba(51, 51, 51, 0.6);
    margin:30px 0;
    cursor: pointer;
}
.iframe1-content .btn .logo{
    width: 32px;
}
.iframe1-content .text{
    flex: 1;
    text-align: left;
    height: 80px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 40px;
}   
.iframe1-content .text p:first-child{
  font-size: 14px !important;
  font-weight: 700;
}
.iframe1-content .text p:last-child{
  font-size: 12px !important;
  font-weight: 400;
  line-height: 20px;
}
.iframe1-content .right{
    width: 20px;
}
.btn .logo,.btn .right{
   height: auto;
   display: flex;
   align-items: center;
}
.gobtn{
    background: #F2B92C;
    border-radius: 50px;
    margin-top: 26px;
    border:none;
    color: #fff;
    font-size: 16px;
    height: 55px;
    padding:0 20px;
    cursor: pointer;
}
.iframe2{
    height: 880px;
    width: 100%;
}
.iframe2-top{
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  
}
.iframe2-top-right{
margin-right: 40px;
}
.iframe2-top-right div{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.iframe2-top-right div img,.iframe2-center-center img{
  width: 32px;
  height: auto;
  margin-right: 10px;
}
.iframe2-top-right div span,.iframe2-center-center span{
  font-size: 20px;
}
.iframe2-center-center{
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.iframe2-bottom{
  margin-top: 66px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.iframe2-bottom .left,.iframe2-bottom .right{
  width: 165px;
  text-align: center;
}
.iframe2-bottom .center{
  border-radius: 8px;
  height: 617px;
  background: rgba(51, 51, 51, 0.6);
  flex: 1;
}
.iframe2-bottom .center .center-top{
  background: rgba(38, 38, 38, .8);
  height: 44px;
  border-radius: 10px 10px 0 0;
}
.iframe2-bottom .center .center-top{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding:0 10px;
}
.iframe2-bottom .center .center-top i{
  width: 14px;
  height: 14px;
  border-radius: 50px;
  display: inline-block;
  margin:0 5px;
}
.center-top i.red{
  background: #ff7a7a;
}
.center-top i.yellow{
  background: #ffda7a;
}
.center-top i.green{
  background: #7affaf;
}
.iframe3{
  width: 100%;
  position: relative;
}
.iframe3 img{
  width: 100%;
}
.iframe3-content {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.iframe3-content p:first-child{
  font-size: 56px;
  line-height: 74px;
  font-weight: 700;
}
.iframe3-content p:first-child i{
  color: #F2B92C;
}
.iframe3-content p:nth-of-type(2),.iframe3-content p:nth-of-type(3){
  color: #808080;
  text-align: center;
  line-height: 20px;
}
.iframe3-content p:nth-of-type(2){
  margin-top: 28px;
}
.iframe3-content p:nth-of-type(3){
  margin-bottom: 57px;
}
.iframe3-button{
  background: none;
  border:1px solid rgba(255, 255, 255, .3);
  border-radius: 50px;
  color: #fff;
  font-size: 36px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding:5px;
}
.iframe3-button span{
  font-weight: lighter;
  letter-spacing: 1px;
  margin-left: 20px;
  margin-right: 60px;
}
.iframe4{
  width: 100%;
  height: 600px;
  background: #1f1f1f;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.iframe4-content p{
  font-size: 56px;
  line-height: 56px;
  font-weight: 700;
  text-align: center;
}
.iframe4-content p i{
  color: #F2B92C;
}
.iframe4-content ul {
  margin-top: 64px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.iframe4-content ul li{
  background: #262626;
  width: 350px;
  height: 200px;
  margin:0 15px;
  padding:0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: left;
  border-radius: 10px;
}
.iframe4-content ul li i{
  color: #666666;
  font-size: 20px;
}
.iframe4-content ul li span{
  color: #F2B92C;
  font-size: 56px;
}
.iframe5{
  width: 100%;
    position: relative;
    background: #1a1a1a;
}
.iframe5 img{
  width: 100%;
}
.iframe5-content{
   position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.iframe5-content p:first-child{
  font-size:56px;
  line-height: 74px;
  margin-bottom: 20px;
}
.iframe5-content p:nth-of-type(2),.iframe5-content p:nth-of-type(3){
  font-size:20px;
  line-height: 26px;
  color: #999;
  font-weight: lighter;
}
.iframe5-content ul li{
  width: 160px;
  height: 160px;
  margin:0 10px;
  align-items: center;
  justify-content: center;
}
.iframe5-content ul li img{
  width: 64px;
  height: 64px;
}
.iframe5-content ul li span{
  color: #fff;
  font-size: 14px;
  margin-top: 20px;
}
.iframe6 .iframe5-content ul li{
  width: 254px;
  height: 300px;
}
.iframe6 .iframe5-content ul li img{
  width: 54px;
  height: auto;
}
.iframe6 .iframe5-content ul li span{
  text-align: center;
  color: #999;
  line-height: 20px;
}
.footer{
  width: 100%;
  height: 300px;
  background: #1a1a1a;
}
.footer-content{
  width: 1200px;
  height: 100%;
  margin:0 auto;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}
.footer-content .left img{
  margin-bottom: 40px;
}
.footer-content .left ul {
  display: flex;
  flex-direction: row;
  margin-top: 30px;
}
.footer-content .left ul li{
  margin-right: 20px;
}
.footer-content .menu{
  margin-left: 100px;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.footer-content .menu ul li{
  color: #999;
  font-size: 16px;
  line-height: 24px;
}
.language{
 height: 64px;
 margin-top: 32px;
}
</style>
